﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;

namespace PanhuaWin
{

    public class Sys_CodeRole
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "guid")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid guid { get; set; }

        /// <summary>
        ///业务类型
        /// </summary>
        [Display(Name = "业务类型")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string TypeName { get; set; }

        /// <summary>
        ///业务编号
        /// </summary>
        [Display(Name = "业务编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string TypeCode { get; set; }

        /// <summary>
        ///创建人ID
        /// </summary>
        [Display(Name = "创建人ID")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int CreateID { get; set; }

        /// <summary>
        ///创建人姓名
        /// </summary>
        [Display(Name = "创建人姓名")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Creator { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///修改人ID
        /// </summary>
        [Display(Name = "修改人ID")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        /// <summary>
        ///修改人姓名
        /// </summary>
        [Display(Name = "修改人姓名")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        ///审批人ID
        /// </summary>
        [Display(Name = "审批人ID")]
        [Column(TypeName = "int")]
        public int? ApproverID { get; set; }

        /// <summary>
        ///审批人
        /// </summary>
        [Display(Name = "审批人")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Approver { get; set; }

        /// <summary>
        ///审批时间
        /// </summary>
        [Display(Name = "审批时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ApproverDate { get; set; }
    }
}